package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Date;
import lombok.Data;


@ApiModel(description = "悬赏")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class BountyBean extends BaseBean {

    @ApiModelProperty("悬赏id")
    private int id;
    @ApiModelProperty("用户id")
    private int userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("悬赏类型 0：全部 1：找人 2：着方案 3：找技术解答")
    private String bountyType;
    @ApiModelProperty("悬赏详情")
    private String bountyDetail;
    @ApiModelProperty("悬赏金额")
    private double amount;
    @ApiModelProperty("冻结状态")
    private int amountStatus;
    @ApiModelProperty("答复数量")
    private int replyCount;
    @ApiModelProperty("采纳回复id")
    private int replyId;
    @ApiModelProperty("浏览数量")
    private int pageView;
    @ApiModelProperty("是否结束")
    private int isEnd;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createdTime;
    @ApiModelProperty("悬赏状态 CLOSED:关闭；NOW:进行中；USE：已采纳 ")
    private String status;
}
